package com.ws.service.impl;

import com.ws.bean.Themes;
import com.ws.mapper.ThemeMapper;
import com.ws.service.ThemeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ThemeServiceImpl implements ThemeService {
    @Autowired
    ThemeMapper themeMapper;

    @Override
    public List<Themes> list() {
        return themeMapper.list();
    }

    @Override
    public int add(Themes themes) {
        return themeMapper.add(themes);
    }

    @Override
    public int delete(Integer id) {
        return themeMapper.delete(id);
    }
}
